#include <webby/stdoutloglistener.hxx>
#include <iostream>

using namespace webby;

StdOutLogListener::StdOutLogListener()
{
	std::cout.precision(3);
}

void
StdOutLogListener::onLogMessage( Logging::LogLevel level, double currentTime, const std::string &logMessage, const std::string &function, unsigned int lineNumber ) 
{
	char s[20];
	sprintf( s, " %8.3f ] ", currentTime );
	std::cout << s << function << "/" << lineNumber << " => " << logMessage << std::endl;
}
